﻿package mortal.common.global
{
    import flash.system.*;

    public class PathConst extends Object
    {
        private static var _mainPath:String = "";
        public static var configUrl:String = "";
        public static var createRoleUrl:String;
        public static var gameUrl:String;
        public static var mapPath:String;
        public static var modelPath:String;
        public static var mapLocalPath:String = "otherRes/maps/";
        public static var mapBgLocalPath:String = "otherRes/bgMaps/";
        public static var headImagePath:String = "../user_image/";
        public static var mapVaguePath:String = "otherRes/maps_min/";
        public static var isPay:Boolean = true;

        public function PathConst()
        {
            return;
        }// end function

        public static function get mainPath() : String
        {
            return _mainPath;
        }// end function

        public static function set mainPath(param1:String) : void
        {
            _mainPath = param1;
            if (Capabilities.screenResolutionX > 1366 && ParamsConst.instance.createRoleUrl.search("small") >= 0)
            {
                createRoleUrl = _mainPath + ParamsConst.instance.createRoleUrl + "?" + ParamsConst.instance.createRoleVersion;
            }
            else
            {
                createRoleUrl = _mainPath + ParamsConst.instance.createRoleUrl + "?" + ParamsConst.instance.createRoleVersion;
            }
            gameUrl = _mainPath + ParamsConst.instance.gameUrl;
            configUrl = _mainPath + ParamsConst.instance.configUrl;
            mapPath = _mainPath + mapLocalPath;
            modelPath = _mainPath + "assets/models/";
            return;
        }// end function

    }
}
